<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class DropColCutoffTimeToUserCouponTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('user_coupon', function (Blueprint $table) {
            $table->dropColumn(['cutoff_time']);

            $table->timestamp('start_time')->nullable()->comment('开始时间')->after('is_use');
            $table->timestamp('end_time')->nullable()->comment('结束时间')->after('start_time');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
